from django.conf.urls import include, url
from ims.views import *

urlpatterns = [

#設計人員
    url(r"^machine$",machine , name="所有機臺名稱"),
    url(r'^design_msg$', design_msgs, name="刀具基本信息"),
    url(r'^design_msg/(?P<pk>[0-9]+)$', design_msg, name="刀具信息實例"),
    url(r'^design_msg/(?P<pk>[0-9]+)/wheel$', wheel, name="砂輪信息"),
    url(r'^design_msg/(?P<pk>[0-9]+)/desi_size$', desi_size, name="尺寸信息"),
    url(r'^cutter_type$', cutter_type, name="刀具類型"),

#生技人員
    url(r'^biotech/(?P<pk>[0-9]+)$', biotech, name="生計信息砂輪修整錄入"),
    url(r'^biotech/(?P<pk>[0-9]+)/wheel_no$', wheel_no, name="砂輪序號"),
    url(r'^grind/(?P<pk>[0-9]+)$', grind, name="磨削條件"),
    url(r'^grind/(?P<pk>[0-9]+)/wheel_no$', grind_wheel_no, name="磨削條件查詢砂輪調整"),

#設計人員
    url(r'^productor/(?P<pk>[0-9]+)$', productor, name="生產人員信息錄入"),
    url(r'^productor/(?P<pk>[0-9]+)/addit$', productor_addit, name="錄入"),
    url(r'^program$', program, name="程式參數補正"),
    url(r'^grind_msg$', grind_msg, name="待在制的刀"),

#尺寸代碼修改
    url(r'^desi_size/(?P<pk>[0-9]+)$', desi_size_up, name="修改尺寸代碼"),
    url(r'^save_as/(?P<pk>[0-9]+)$', save_as, name="另存新版"),
    url(r'^related_tool$', related_tool, name="關聯刀具查詢"),
    url(r'^copy_wheel/(?P<pk>[0-9]+)$', copy_wheel, name="複製砂輪信息"),

#數據統計
    url(r'data_nav$', data_nav, name="菜單選項"),
    url(r'export_data$', export_data, name="數據統計"),
    url(r'correct_data', correct_data, name="調機數據導出"),
]
